﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OgilvyOne.Model
{
    public class UserColumnModel
    {
        private string columnname;
        private string columnurl;
        private int columnid;
        private string layerid;
        private int parentid;
        private string isAudit; //是否有审核权 1 有

        private int columntypeid;

        public string Audit
        {
            get { return isAudit; }
            set { isAudit = value; }
        }

        
        /// <summary>
        /// 栏目是否有审核发布权
        /// </summary>
        /// <returns></returns>
        public bool isAduit()
        {
            return isAudit != null && isAudit == "1";
        }

        public string Columnname
        {
            get { return columnname; }
            set { columnname = value; }
        }

        public string Columnurl
        {
            get { return columnurl; }
            set { columnurl = value; }
        }

        public int Columnid
        {
            get { return columnid; }
            set { columnid = value; }
        }

        public int Columntypeid
        {
            get { return columntypeid; }
            set { columntypeid = value; }
        }

        public int Parentid
        {
            get { return parentid; }
            set { parentid = value; }
        }

        public string Layerid
        {
            get { return layerid; }
            set { layerid = value; }
        }
    }
}
